#include "bsp_led.h"



void bsp_led_on(uint8_t u8LedNum)
{
    switch(u8LedNum)
    {
        case 1:
        PGout(9) = 0;
        break;
        case 2:
        PGout(10) = 0;
        break;
        case 3:
        PGout(11) = 0;
        break;
        case 4:
        PGout(12) = 0;
        break;
        case 5:
        PBout(8) = 0;
        break;
        case 6:
        PBout(9) = 0;
        break;
        default:
        return;
    }
}
void bsp_led_off(uint8_t u8LedNum)
{
    switch(u8LedNum)
    {
        case 1:
        PGout(9) = 1;
        break;
        case 2:
        PGout(10) = 1;
        break;
        case 3:
        PGout(11) = 1;
        break;
        case 4:
        PGout(12) = 1;
        break;
        case 5:
        PBout(8) = 1;
        break;
        case 6:
        PBout(9) = 1;
        break;
        default:
        return;
    }
}
void bsp_led_toggle(uint8_t u8LedNum)
{
    switch(u8LedNum)
    {
        case 1:
        PGout(9) = !PGin(9);
        break;
        case 2:
        PGout(10) = !PGin(10);
        break;
        case 3:
        PGout(11) = !PGin(11);
        break;
        case 4:
        PGout(12) = !PGin(12);
        break;
        case 5:
        PBout(8) = !PBin(8);
        break;
        case 6:
        PBout(9) = !PBin(9);
        break;
        default:
        return;
    }
}


